package com.weibo.basic.alg.alert.server.domain;

import lombok.Data;

@Data
public class BaseWechatReturn {

    protected Integer errcode;
    protected String errmsg;

    public boolean isSuccess() {
        return 0 == errcode;
    }

    @Override
    public String toString() {
        return "BaseWechatReturn{" +
            "errcode=" + errcode +
            ", errmsg='" + errmsg + '\'' +
            '}';
    }
}
